<!-- 我的喜欢页面 -->
<template>
  <view>
    <TabSelector :tabs="tabs" :initialIndex="0" @change="handleChange" />
    <view v-if="!flag">
      <view v-if="!list.length">
        <NoData />
      </view>
    </view>
    <view v-else>
      <view v-if="!list.length">
        <NoData />
      </view>
    </view>
  </view>
</template>
<script setup>
import { ref } from 'vue'
import TabSelector from '../MyMoney/TabSelector.vue'
import NoData from '@/components/NoData/NoData.vue'
const tabs = [
  { label: '我喜欢', value: 'mylike' },
  { label: '喜欢我', value: 'likeme' },
]
const flag = ref(false)
const handleChange = (index) => {
  flag.value = index === 1
}
const list = ref([])
</script>

<style lang="scss" scoped></style>
